/**
 * @Author YuanYuan
 * @Date 2022/7/11
 * @Time 16:03
 */
public class TestDemo {

    public static void main(String[] args) {
        SingleLinkedList singleLinkedList = new SingleLinkedList();

        //singleLinkedList.addFirst(10);
        singleLinkedList.addFirst(1);
        singleLinkedList.addFirst(1);

        singleLinkedList.display();

        System.out.println("========================");

        singleLinkedList.addLast(1);
        //singleLinkedList.addLast(2);
        //singleLinkedList.addLast(3);

        singleLinkedList.display();

        System.out.println("========================");

        //singleLinkedList.addIndex(2,9);

        singleLinkedList.display();

        System.out.println("========================");

        singleLinkedList.removeAllKey(1);

        singleLinkedList.display();



        System.out.println("========================");

        singleLinkedList.clear();

        singleLinkedList.display();


    }
}
